
public class SymboleNonTerminaux extends Symbole {
	
	 public String cara;
	 protected char symbole;
	 
	 
		public SymboleNonTerminaux(char symbole) {
			super(symbole);
			if('A' <= symbole && symbole <= 'Z'){
				this.symbole = symbole;
				}else{
			    this.symbole = 0;
				}
		}
	 
	/*
		if('A' <= symbole && symbole <= 'Z'){
		this.symbole = symbole;
		}else{
	    this.symbole = 0;
		}*/
	
	@Override
	public String toString() {
		return "SymboleNonTerminaux [cara=" + cara + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((cara == null) ? 0 : cara.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		SymboleNonTerminaux other = (SymboleNonTerminaux) obj;
		if (cara == null) {
			if (other.cara != null)
				return false;
		} else if (!cara.equals(other.cara))
			return false;
		return true;
	}

	
	
	
	
	}





